package pers.jason.wppm.security.core.social.oicq.connect;

import org.springframework.social.connect.support.OAuth2ConnectionFactory;
import pers.jason.wppm.security.core.social.oicq.api.OicqApiBinding;

/**
 * OAuth2管家组件
 */
public class OicqOAuthConnectionFactory extends OAuth2ConnectionFactory<OicqApiBinding> {

    //String providerId, OAuth2ServiceProvider<OicqApiBinding> serviceProvider, ApiAdapter<OicqApiBinding> apiAdapter
    public OicqOAuthConnectionFactory(String providerId, String appId, String appSecret) {
        super(providerId, new OicqServiceProvider(appId, appSecret), new OicqUserAdapter());
    }
}
